<%@ page language="java" import="java.util.*"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="use1" class="com.use"></jsp:useBean>
<%
String name=request.getParameter("name");
String pass=request.getParameter("pass");
String sex=request.getParameter("sex");
String [] hobbies=request.getParameterValues("vehicle");
String str="";
for(int i=0;i<hobbies.length;i++){
	str+=hobbies[i]+' ';
}
use1.setName(name);
use1.setPass(pass);
use1.setSex(sex);
use1.setHobby(str);
%>
<form action="5.jsp">
用户名称：${use1.name}<br>
密码：${use1.pass}<br>
性别：${use1.sex}<br>
爱好：${use1.hobby}<br>
<button type="submit">返回</button>
</form>
</body>
</html>